import 'package:cream_chat_flutter/configs/Apis.dart';
import 'package:cream_chat_flutter/models/dopo/GetRecommendUserListArgs.dart';
import 'package:cream_chat_flutter/models/dopo/GetRecommendUserListDto.dart';
import 'package:cream_chat_flutter/models/dopo/GetTencentCosStsDto.dart';
import 'package:cream_chat_flutter/utils/HiNet.dart';

class Ajax {
  static final Ajax _ajax = new Ajax._internal();

  factory Ajax() => _ajax;

  Ajax._internal();

  Future<GetTencentCosStsDto> getTencentCosStsDto() async {
    var data = await request(getTencentCosSts);
    return data == null ? null : GetTencentCosStsDto.fromJson(data);
  }

  Future<GetRecommendUserListDto> getRecommendUserList(GetRecommendUserListArgs args) async {
    var data = await request(GetRecommendUserList, data: args);
    return data == null ? null : GetRecommendUserListDto.fromJson(data);
  }


}
